/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package javacroft.business;

import java.util.List;

/**
 *
 * @author hind
 */
public class PointJury
{
    private Float nbPointJury;
    private Semestre unSemestre;
    private Annee uneAnnee;

    /*---les constructeurs---*/
    public PointJury(Float nbPointJury,Semestre leSemestre)
    {
       this.nbPointJury=nbPointJury;
       this.unSemestre=leSemestre;
       this.uneAnnee=null;
    }

     public PointJury(Float nbPointJury,Annee annee)
    {
       this.nbPointJury=nbPointJury;
       this.unSemestre=null;
       this.uneAnnee=annee;
    }

    /*-----------------------------les getteurs--------------------------*/
    public Annee getAnnee()
    {
            return this.uneAnnee;
    }   

    public Semestre getLeSemestre()
    {
        return this.unSemestre;
    }

    public boolean compareTo(Semestre semestre)
    {
        return (unSemestre != null) && unSemestre.compareTo(semestre.getCodeApogee());
    }

     public boolean compareTo(Annee annee)
    {
        return (uneAnnee != null) && uneAnnee.compareTo(annee);
    }

    /**
     * @return the nbPointJury
     */
    public Float getNbPointJury() {
        return nbPointJury;
    }

    /**
     * @param nbPointJury the nbPointJury to set
     */
    public void setNbPointJury(Float nbPointJury) {
        this.nbPointJury = nbPointJury;
    }

    

}
